//
//  WLGP_ImageCollectionViewCell.m
//  录音转文字助手
//
//  Created by 王亮 on 2020/9/9.
//  Copyright © 2020 录音转文字助手. All rights reserved.
//

#import "WLGP_ImageCollectionViewCell.h"
#import "WLAppleStore.h"
@interface WLGP_ImageCollectionViewCell ()
@property(nonatomic,strong) UIImageView *image_view;

@end
@implementation WLGP_ImageCollectionViewCell

-(void)bind_row_data:(WLBaseCollectionViewLayerRow *)sender{
    UIImage *image = sender.data;
    self.image_view.image = image;
}
-(void)bind_delegate:(id)sender{
    
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = UIColor.redColor;
        [self addSubview:self.image_view];
        [self.image_view mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.insets(UIEdgeInsetsMake(0, 0, 0, 0));
        }];
    }
    return self;
}

-(UIImageView *)image_view{
    if (!_image_view){
        _image_view = [[UIImageView alloc]init];
        _image_view.contentMode = UIViewContentModeScaleAspectFit;
    }
    return _image_view;
}
@end

@implementation WLGP_ImageCollectionViewCellModel

@end
